package com.joey.cloud.flowable.event;

import com.alibaba.fastjson.JSONObject;
import org.springframework.context.ApplicationEvent;

/**
 * 定义flow流程触发监听发送消息事件
 */
public class MyFlowMsgEvent extends ApplicationEvent {

    private final String eventType;
    private final JSONObject eventJson;

    public MyFlowMsgEvent(Object source,String eventType,JSONObject eventJson) {
        super(source);
        this.eventType = eventType;
        this.eventJson = eventJson;
    }

    public String getEventType() {
        return eventType;
    }

    public JSONObject getEventJson() {
        return eventJson;
    }
}
